import { ElMessageBox } from "element-plus";
import type { App } from "vue";

export const setMessage = (app: App<Element>) => {
  app.provide("$info", ElMessageBox.alert);
  app.provide("$confirm", ElMessageBox.confirm);
  app.provide("$prompt", ElMessageBox.prompt);
  app.provide("$message", ElMessageBox);
};
